package neusoft.yuejian_11.interF;

import java.util.List;

import neusoft.yuejian_11.bean.AttentionBean;
import neusoft.yuejian_11.bean.ClubCollectBean;
import neusoft.yuejian_11.bean.IsAttentionBean;
import neusoft.yuejian_11.bean.MasterCollectBean;
import neusoft.yuejian_11.bean.PostCollectBean;
import neusoft.yuejian_11.bean.TrainCollectBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by NEUSOFT on 2017/10/17.
 */

public interface AttentionService {
    //判断是否收藏
    @GET("Attention/getIsCollected")
    Call<IsAttentionBean> isCollected(@Query("u_id") String u_id,
                                      @Query("select_id") String select_id,
                                      @Query("flag") String flag);

    //收藏俱乐部
    @GET("Attention/userCollectClub")
    Call<AttentionBean> userCollectClub(@Query("u_id") int userId,
                                        @Query("c_id") String clubId);
    //收藏培训
    @GET("Attention/userCollectTrain")
    Call<AttentionBean> userCollectTrain(@Query("u_id") int userId,
                                          @Query("t_id") String trainId);

    //收藏帖子
    @GET("Attention/userCollectPost")
    Call<AttentionBean> userCollectPost(@Query("u_id") String u_id,
                                        @Query("p_id") String p_id);
    //收藏大师
    @GET("Attention/userCollectProfessor")
    Call<AttentionBean> userCollectMaster(@Query("u_id") String u_id,
                                        @Query("pm_id") String pm_id);
    //获取我的收藏帖子列表
    @GET("Post/getMylikepost")
    Call<List<PostCollectBean>> getPostCollectlist(@Query("u_id") int u_id,
                                                   @Query("flag") String flag);
    //获取我的收藏培训列表
    @GET("User/getMylikeTrain")
    Call<List<TrainCollectBean>> getTrainCollectlist(@Query("u_id") int u_id,
                                                     @Query("flag") String flag);
    //获取我的收藏大师列表
    @GET("User/getMylikeMaster")
    Call<List<MasterCollectBean>> getMasterCollectlist(@Query("u_id") int u_id,
                                                       @Query("flag") String flag);
    //收藏俱乐部列表
    @GET("Post/getMylikeclub")
    Call<List<ClubCollectBean>> getClubCollectlist(@Query("u_id") int u_id,
                                                   @Query("flag") String flag);

}
